package factory;

import entity.Ticket;
import impl.FreeTicket;
import impl.NormalTicket;
import impl.StudentTicket;

public class TicketFactory {
	public static Ticket getTicket(int TicketId){
		Ticket ticket = null;
		switch(TicketId){
		case 1:
			ticket = new NormalTicket();
			break;
		case 2:
			ticket = new StudentTicket();
			break;
		case 3:
			ticket = new FreeTicket();
			break;	
		}
		return ticket;
	}
}
